post_install () {
  VBoxManage extpack install "/usr/share/virtualbox/extensions/Oracle_VM_VirtualBox_Extension_Pack-${1%%-*}.vbox-extpack" >/dev/null
}

pre_upgrade() {
  post_remove $*
}

post_upgrade() {
  post_install $*
}

post_remove() {
  VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack" >/dev/null
}

# vim:set ts=2 sw=2 ft=sh et:
